/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.cn.entity;

import org.hibernate.validator.constraints.Length;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

/**
 * 中国考勤Entity
 * @author hui.li
 * @version 2017-02-20
 */
public class AttendanceCn extends DataEntity<AttendanceCn> {
	
	private static final long serialVersionUID = 1L;
	private String warehouse;		// 仓库
	
	private Date date;		// 日期
	private String number;		// 工号
	private String employee;		// 姓名
	private String outsourcingCompany;		// 外包公司
	private String group;		// 组别
	private String workingHours;		// 工时
	private Date beginDate;// 开始时间
	private Date endDate;// 结束时间
	private String employeeCount;// 统计员工总数
	private String status;//同步状态1表示未同步，2表示已经同步
	private String companyId;
	private String officeId;
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getEmployeeCount() {
		return employeeCount;
	}

	public void setEmployeeCount(String employeeCount) {
		this.employeeCount = employeeCount;
	}
	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public AttendanceCn() {
		super();
	}

	public AttendanceCn(String id){
		super(id);
	}
	
	@Length(min=0, max=64, message="仓库长度必须介于 0 和 64 之间")
	@ExcelField(title = "仓库", align = 1, sort = 1,type=1)
	public String getWarehouse() {
		return warehouse;
	}

	public void setWarehouse(String warehouse) {
		this.warehouse = warehouse;
	}

	
	@JsonFormat(pattern = "yyyy-MM-dd")
	@ExcelField(title = "日期", align = 1, sort = 2)
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}


	@Length(min=0, max=64, message="工号长度必须介于 0 和 64 之间")
	@ExcelField(title = "工号", align = 1, sort = 3)
	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}
	
	@Length(min=0, max=64, message="姓名长度必须介于 0 和 64 之间")
	@ExcelField(title = "姓名", align = 1, sort = 4)
	public String getEmployee() {
		return employee;
	}

	public void setEmployee(String employee) {
		this.employee = employee;
	}
	
	@Length(min=0, max=64, message="外包公司长度必须介于 0 和 64 之间")
	@ExcelField(title = "外包公司", align = 1, sort = 5)
	public String getOutsourcingCompany() {
		return outsourcingCompany;
	}

	public void setOutsourcingCompany(String outsourcingCompany) {
		this.outsourcingCompany = outsourcingCompany;
	}
	
	@Length(min=0, max=64, message="组别长度必须介于 0 和 64 之间")
	@ExcelField(title = "组别", align = 1, sort = 6)
	public String getGroup() {
		return group;
	}

	public void setGroup(String group) {
		this.group = group;
	}
	@ExcelField(title = "工时", align = 1, sort = 7)
	public String getWorkingHours() {
		return workingHours;
	}

	public void setWorkingHours(String workingHours) {
		this.workingHours = workingHours;
	}

    
    public String getCompanyId() {
        return companyId;
    }

    
    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    
    public String getOfficeId() {
        return officeId;
    }

    
    public void setOfficeId(String officeId) {
        this.officeId = officeId;
    }
	
}